/*
  IconPicker 组件样式 (中文注释)
  - 用途：封装图标选择弹窗的所有视觉样式，避免和页面其他样式冲突
  - 根类名：`.icon-picker`，组件内所有类均以此为前缀进行命名空间隔离
  - 说明：样式只负责展示与布局，交互逻辑在组件文件 `IconPicker.tsx` 中实现
*/


.icon-picker .icon-picker-mask {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    padding: 18px;
}

.icon-picker .icon-picker-center {
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.icon-picker .icon-picker-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.icon-picker .icon-picker-title {
    font-size: 30px;
    font-weight: 700;
}

.icon-picker .icon-close {
    background: transparent;
    font-size: 20px;
    color: #999;
    border: none;
}

.icon-picker .icon-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: 12px;
    position: relative;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: start;
    padding-left: 8px;
    padding-right: 8px;
}

.icon-picker .tool-btn {
    position: relative;
    font-size: 20px;
    margin: 0px 10px;
    padding: 2px 15px;
    border-radius: 10px;
    font-size: 25px;
}

.icon-picker .tool-btn.active {
    background: linear-gradient(90deg, #fff3e6, #fff);
    border: 1px solid rgba(255, 140, 66, 0.15);
}

.icon-picker .tab-indicator {
    position: absolute;
    bottom: 8px;
    height: 4px;
    background: linear-gradient(90deg, #FF8C42, #FF6B99);
    border-radius: 4px;
    transition: left 260ms cubic-bezier(.22, .9, .28, 1), width 260ms cubic-bezier(.22, .9, .28, 1), opacity 200ms ease;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
}

.icon-picker .icon-picker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    padding: 6px 0;
}

.icon-picker .icon-picker-action-row {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-bottom: 8px;
}

.icon-picker .crop-action-btn {
    background: #FF8C42;
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    border: none;
}

.icon-picker .icon-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff9f3;
    display: flex;
    align-items: center;
    justify-content: center;
}